package org.ghost.wechat.platform.dto.wechat.message;

import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import java.math.BigDecimal;

/**
 * @author 01
 */
@XmlRootElement(name = "xml")
public class LocationMsgXmlDTO extends CommonMsgXmlDTO {
    private static final long serialVersionUID = -132303250613063981L;

    /**
     * 地理位置纬度
     */
    @XmlElement(name = "Location_X")
    private BigDecimal locationX;
    /**
     * 地理位置经度
     */
    @XmlElement(name = "Location_Y")
    private BigDecimal locationY;
    /**
     * 地图缩放大小
     */
    @XmlElement(name = "Scale")
    private Integer scale;
    /**
     * 地理位置信息
     */
    @XmlElement(name = "Label")
    private String label;

    public BigDecimal getLocationX() {
        return locationX;
    }

    public void setLocationX(BigDecimal locationX) {
        this.locationX = locationX;
    }

    public BigDecimal getLocationY() {
        return locationY;
    }

    public void setLocationY(BigDecimal locationY) {
        this.locationY = locationY;
    }

    public Integer getScale() {
        return scale;
    }

    public void setScale(Integer scale) {
        this.scale = scale;
    }


    public String getLabel() {
        return label;
    }

    public void setLabel(String label) {
        this.label = label;
    }

    @Override
    public String toString() {
        return "LocationMsgXmlDTO{" +
                "locationX=" + locationX +
                ", locationY=" + locationY +
                ", scale=" + scale +
                ", label='" + label + '\'' +
                ", msgId='" + msgId + '\'' +
                ", toUserName='" + toUserName + '\'' +
                ", fromUserName='" + fromUserName + '\'' +
                ", createTime=" + createTime +
                ", msgType='" + msgType + '\'' +
                '}';
    }
}
